<!DOCTYPE html>
<html>
  <title>CSS Reference Case: Basic cases with max-content and min-content</title>
  <meta charset="utf-8">
  <link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <meta name="flags" content="ahem">
  <style>
    html,body {
      margin: 0;
    }
    .container {
      width: max-content;
      height: 50px;
      border: 1px solid black;

      font-family: Ahem;
      font-size: 15px;
      line-height: 21px;
    }
    .container > * {
      display: inline-block;
      border: 1px solid blue;
    }

    .container-vertical {
      width: 50px;
      border: 1px solid black;

      font-family: Ahem;
      font-size: 15px;
      line-height: 21px;
    }
    .container-vertical > * {
      writing-mode: vertical-lr;
      border: 1px solid blue;
    }
  </style>
</head>
<body>
  <div class="container">
    <div>min<br>in the box</div>
    <div>max<br>in the box</div>
  </div>

  <div class="container-vertical">
    <div>min<br>in the box</div>
    <div>max<br>in the box</div>
  </div>
</body>
</html>
